package cn.iocoder.yudao.module.blog.dal.mysql.jiucaselevel;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.blog.dal.dataobject.jiucaselevel.BlogJiuCaseLevelDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.blog.controller.admin.jiucaselevel.vo.*;

/**
 * 灸法案例审批等级 Mapper
 *
 * @author 曹建伟
 */
@Mapper
public interface BlogJiuCaseLevelMapper extends BaseMapperX<BlogJiuCaseLevelDO> {

    default PageResult<BlogJiuCaseLevelDO> selectPage(BlogJiuCaseLevelPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<BlogJiuCaseLevelDO>()
                .betweenIfPresent(BlogJiuCaseLevelDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(BlogJiuCaseLevelDO::getId));
    }

    default List<BlogJiuCaseLevelDO> selectList(BlogJiuCaseLevelExportReqVO reqVO) {
        return selectList(new LambdaQueryWrapperX<BlogJiuCaseLevelDO>()
                .betweenIfPresent(BlogJiuCaseLevelDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(BlogJiuCaseLevelDO::getId));
    }

}
